trivial-httpd: Daemonize better
authorColin Walters <walters@verbum.org>
Thu, 12 Jan 2017 15:02:23 +0000 (10:02 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 12 Jan 2017 15:26:01 +0000 (15:26 +0000)
commit2a71afc50779f2b0cd13ea48762af348c396ad2b
treea5ac81e4f0743bd8b59584c9db22e0a72e2c683f
parentd9f43cd2fbbd48b34c06552205eaf27eed1e1ae0
trivial-httpd: Daemonize better

I was trying to debug `test-pull-c`, and typing `Ctrl-C` in gdb
ended up sending `SIGINT` to trivial-httpd as well, killing it.

Daemonize a bit more properly to avoid this. I also followed the standard
`/dev/null` guidelines.

Closes: #643
Approved by: jlebon
src/ostree/ostree-trivial-httpd.c